package com.hpc.Service;

import entity.article;
import entity.comment;

import java.util.List;
import java.util.Map;

public interface articleService {
    public article findById(String articleId);
    public List<article> getRecommendArticles(List<String> titles);
    public void hotweekendly();
    public List<article> gethotTop5();
    public Map<String,String> readArticle(String articleId,String userid);
    public int addComment(String articleId, String userId, String content);
    public boolean deleteArticle(String articleId);
    public List<comment> getCommentsByArticleId(String articleId);
    public List<article> allArticle(int type);
    public List<article> allArticleByUserId(String userId,boolean isNeedFilter);
    public List<article> searchByTitle(String title);
    public boolean publish(String title,String content,String userId,String category,String username,String cover);
    public boolean modifyArticle(String articleId,String content,String title,int type,String cover);
}
